package com.android.porttallymansystem.logic.model

import com.android.porttallymansystem.PTSApplication
import com.android.porttallymansystem.R

data class SystemMessage(val title: String, val content: String, val time: MessageTime) {
    data class MessageTime(
        val year: Int,
        val month: Int,
        val day: Int,
        val hour: Int,
        val minute: Int
    ) {
        override fun toString(): String {
            return String.format(
                PTSApplication.context.resources.getString(R.string.time_1),
                year,
                month,
                day,
                hour,
                minute
            )
        }
    }
}